package com.lyloou.ssm.controller;

import com.lyloou.ssm.pojo.Account;
import com.lyloou.ssm.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @author lyloou
 * @date 2020/06/14
 * @desc
 */
@Controller
@RequestMapping("/account")
public class AccountController {
    @Autowired
    AccountService accountService;

    @RequestMapping("/queryList")
    @ResponseBody
    public List<Account> queryList() {
        return accountService.queryList();
    }
}
